<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //数组装换为字符串
        var arr = ['齐','楚','燕','韩','赵','魏','秦']
        console.log(arr.toString())
        // console.log(arr.jojn())
        console.log(arr.join('-'))

        //合并两个数组
        var arr1 = [11,22]
        var arr2 = [33,44]
        //concat 合并两个数组
        var arr3 = arr1.concat(arr2)
        console.log(arr3)
        //...展开运算符 合并数组
        var arr4 = [...arr1,...arr2]
        console.log(arr4)
    </script>
</body>
</html>